<?php
function getBingoLvl($file)	{
	$arrTemp	=	array();
	$arrHistory	=	array();
	include_once("inc/fileRow2array.php");
	$arrRow	=	fileRow2array($file);
	foreach($arrRow as $strRow)	{
		$aRow = explode(",",$strRow);
		$amount = count($aRow);
		$aBingo[$aRow[0]][]=array_slice($aRow,1,$amount-1);
	}
	foreach($aBingo as $aBingoKey => $aLvl)	{
		foreach($aLvl as $aLvlKey => $lvl)	{
			if(stristr($lvl[0],"-"))	{
				$bonusTemp = explode("-",$lvl[0]);
				$aBingo[$aBingoKey][$aLvlKey]["amount"] = $bonusTemp[0];
				$aBingo[$aBingoKey][$aLvlKey]["bonus"] = $bonusTemp[1];
			}
		}
	}
	return $aBingo;
}
?>